CREATE EXTERNAL TABLE IF NOT EXISTS spmi_ods.spmn_network_relation(
id                                                 bigint                         COMMENT '主键ID',
network_group_id                                   bigint                         COMMENT '网点分组ID',
destination_id                                     bigint                         COMMENT '网点ID',
destination_name                                   String                         COMMENT '网点名称',
destination_code                                   String                         COMMENT '网点编码',
create_time                                        timestamp                      COMMENT '创建时间'
)
COMMENT '网点分组关联表'
PARTITIONED BY (dt STRING COMMENT '更新/创建日期 (yyyy-MM-dd)')
STORED AS PARQUET 
LOCATION '/dw/hive/spmi_ods.db/external/spmn_network_relation'
TBLPROPERTIES (
  'parquet.column.index.access'='true'
)